﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StoreOnlineEntity.Attributes;

namespace StoreOnlineEntity.Entitys
{
    class MethodPermission
    {
        private long id;
        [ColumnAttribute(DataType = "bigint", NotNull = true, PrimaryKey = true)]
        public long ID
        {
            get { return id; }
            set { id = value; }
        }

        private string name;
        [ColumnAttribute(DataType = "string", NotNull = true, Length=50)]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private DateTime lastedModify;
        [ColumnAttribute(DataType = "datetime", NotNull = false)]
        public DateTime LastedModify
        {
            get { return lastedModify; }
            set { lastedModify = value; }
        }

        private User lastedUser;
        [ColumnAttribute(Name = "UserID", DataType = "bigint", NotNull = false, ForeinKey = true)]
        public User LastedUser
        {
            get { return lastedUser; }
            set { lastedUser = value; }
        }
    }
}
